
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>美丽说-个人资料</title>
	<link rel="stylesheet" href="/public/home/css/base.css" type="text/css" />
	<link rel="stylesheet" href="/public/home/css/shop_common.css" type="text/css" />
	<link rel="stylesheet" href="/public/home/css/shop_header.css" type="text/css" />
	<link rel="stylesheet" href="/public/home/css/shop_manager.css" type="text/css" />
	<link rel="stylesheet" href="/public/home/css/shop_list.css" type="text/css" />
	<link rel="stylesheet" href="/public/home/css/collection_shop.css" type="text/css" />
  <link rel="icon" href="/public/home/images/7d026282ff00a259b6a7b90eee6d_48_48.c5.png" type="image/x-icon"/>
    <script type="text/javascript" src="/public/home/js/jquery.js" ></script>
    <script type="text/javascript" src="/public/home/js/topNav.js" ></script>
     <style type="text/css">
		.pagination {
		  display: inline-block;
		  padding-left: 0;
		  margin: 20px 0;
		  border-radius: 4px;
		}
		.pagination > li {
		  display: inline;
		}
		.pagination > li > a,
		.pagination > li > span {
		  position: relative;
		  float: left;
		  padding: 6px 12px;
		  margin-left: -1px;
		  line-height: 1.42857143;
		  color: #428bca;
		  text-decoration: none;
		  background-color: #fff;
		  border: 1px solid #ddd;
		}
		.pagination > li:first-child > a,
		.pagination > li:first-child > span {
		  margin-left: 0;
		  border-top-left-radius: 4px;
		  border-bottom-left-radius: 4px;
		}
		.pagination > li:last-child > a,
		.pagination > li:last-child > span {
		  border-top-right-radius: 4px;
		  border-bottom-right-radius: 4px;
		}
		.pagination > li > a:hover,
		.pagination > li > span:hover,
		.pagination > li > a:focus,
		.pagination > li > span:focus {
		  color: #2a6496;
		  background-color: #eee;
		  border-color: #ddd;
		}
		.pagination > .active > a,
		.pagination > .active > span,
		.pagination > .active > a:hover,
		.pagination > .active > span:hover,
		.pagination > .active > a:focus,
		.pagination > .active > span:focus {
		  z-index: 2;
		  color: #fff;
		  cursor: default;
		  background-color: #428bca;
		  border-color: #428bca;
		}
		.pagination > .disabled > span,
		.pagination > .disabled > span:hover,
		.pagination > .disabled > span:focus,
		.pagination > .disabled > a,
		.pagination > .disabled > a:hover,
		.pagination > .disabled > a:focus {
		  color: #777;
		  cursor: not-allowed;
		  background-color: #fff;
		  border-color: #ddd;
		}
		.bn{
			font-size:15px;
			line-height:50px;
			color:black;
		}
		.textbox{
	     	border:1px solid #D8D8D8;
	      	width:200px;
	      	height:30px;
	      
	      	margin-left:10px;
    	}
    	#Content .main-wrap,
        #content .main-wrap {
            margin-left: 140px;
        }

        #Content .col-sub,
        #content .col-sub {
            width: 140px;
            margin-left: -100%;
            *display: inline;
        }

        .sns-config .bd .tips-box{
        font-size:15px;
        margin:10px 0;
		}
		.sns-config .bd .tips-box b{
		    margin: 0 4px;
		}

		#baseInfoForm .input-help-text{
		    line-height: 12px;
		    color:#999;
		}

		#J_uniqueName{
		    width:136px;
		}
		#J_realname-mask{
		    width:136px;
		}
		
		#Content .main-wrap,
        #content .main-wrap {
            margin-left: 139px;
        }

        #Content .col-sub,
        #content .col-sub {
            width: 139px;
            margin-left: -100%;
            *display: inline;
        }
		#form{
			margin:30px;
			color:black;
		}
		

 	</style>
</head>
<body>















<script type="text/javascript" src="//g.alicdn.com//tb/mtb-profile/0.0.2/fuck/es5-shim.js"></script>
        <script>
       

            //用于离开页面时验证是否有资料修改，如有修改则弹出提示确认框
            (function () {
                var E = YAHOO.util.Event;
                var D = YAHOO.util.Dom;
                var oldContent = '';
                var newContent = '';
                var contentReady = false;
                var form = (D.getElementsByClassName("infoForm"))[0];

                var getOldContent = function () {
                    oldContent = '';
                    for (var i = 0; i < form.length; i++) {
                        if (form.elements[i].type == 'hidden')
                            continue;
                        //默认提示文案修改时请修改以下文案
                        if (form.elements[i].value == "多条内容用空格或逗号分隔")
                            continue;
                        if (form.elements[i].type == 'radio') {
                            oldContent += form.elements[i].checked;
                            continue;
                        }
                        if (form.elements[i].type == 'checkbox') {
                            oldContent += form.elements[i].checked;
                            continue;
                        }
                        oldContent += form.elements[i].value;
                    }
                    contentReady = true;
                }

                var checkEdit = function (e) {
                    var newContent = '';
                    for (var i = 0; i < form.length; i++) {
                        if (form.elements[i].type == 'hidden')
                            continue;
                        if (form.elements[i].value == "多条内容用空格或逗号分隔")
                            continue;
                        if (form.elements[i].type == 'radio') {
                            newContent += form.elements[i].checked;
                            continue;
                        }
                        if (form.elements[i].type == 'checkbox') {
                            newContent += form.elements[i].checked;
                            continue;
                        }
                        newContent += form.elements[i].value;

                    }
                    if (newContent != oldContent)
                        e.returnValue = '======================================\n' + '你修改的资料还没有保存，确认要离开吗？\n' + '======================================';
                }

                E.onDOMReady(function () {
                    setTimeout(getOldContent, 1000);
                });

                E.addListener(window, 'beforeunload', function (e) {
                    if (contentReady == true)
                        checkEdit(e);
                });

                form.onsubmit = function () {
                    getOldContent();
                };


        });
   </script>





		<!-- Header  -wll-2013/03/24 -->
	<div class="shop_hd">
      <!-- Header TopNav -->
      <div class="shop_hd_topNav">
        <div class="shop_hd_topNav_all">
          <!-- Header TopNav Left -->
          @if(!session('id'))
          <div class="shop_hd_topNav_all_left">
            <p>您好，欢迎来到&nbsp;
              美丽说商城&nbsp;[
              <a href={{url('/home/login')}}>登录</a>]&nbsp;[
              <a href={{url('/register')}}>注册</a>]</p></div>
          @else
            <div class="shop_hd_topNav_all_left">
            <p><span style="color:red">{{session("username")}}</span>&nbsp;您好，欢迎来到&nbsp;
              美丽说商城&nbsp;[
              <a href={{url('/clear/clear')}}>退出</a>]&nbsp;</p></div>
          @endif
          <!-- Header TopNav Left End -->
          <!-- Header TopNav Right -->
          <div class="shop_hd_topNav_all_right">
            <ul class="topNav_quick_menu">
              <li>
                <div class="topNav_menu">
                  <a href="#" class="topNavHover">我的商城
                    <i></i>
                  </a>
                  <div class="topNav_menu_bd" style="display:none;">
                    <ul>
                      <li>
                        <a title="已买到的商品" target="_top" href="{{url('/order/orderlist')}}">已买到的商品</a></li>
                      <li>
                        <a title="个人主页" target="_top" href={{url('/basics/basics')}}>个人主页</a></li>
                      <li>
                        <a title="我的好友" target="_top" href="#">我的好友</a></li>
                    </ul>
                  </div>
                </div>
              </li>
              <li>
                <div class="topNav_menu">
                  <a href="#" class="topNavHover">卖家中心
                    <i></i>
                  </a>
                  <div class="topNav_menu_bd" style="display:none;">
                    <ul>
                      <li>
                        <a title="已售出的商品" target="_top" href="#">已售出的商品</a></li>
                      <li>
                        <a title="销售中的商品" target="_top" href="#">销售中的商品</a></li>
                    </ul>
                  </div>
                </div>
              </li>
              <li>
                <div class="topNav_menu">
                  <a href="{{ url('/cart') }}" class="topNavHover">购物车</a>
                  <div class="topNav_menu_bd" style="display:none;">
                    <!-- <ul>
                    <li><a title="已售出的商品" target="_top" href="#">已售出的商品</a></li>
                    <li><a title="销售中的商品" target="_top" href="#">销售中的商品</a></li></ul>
                    -->
                    <p>还没有商品，赶快去挑选！</p>
                  </div>
                </div>
              </li>
              <li>
                <div class="topNav_menu">
                  <a href="#" class="topNavHover">我的收藏
                    <i></i>
                  </a>
                  <div class="topNav_menu_bd" style="display:none;">
                    <ul>
                      <li>
                        <a title="收藏的商品" target="_top" href="{{ url('/collection/index/1') }}">收藏的商品</a></li>
                      <li>
                        <a title="收藏的店铺" target="_top" href="{{ url('/collection/index/2') }}">收藏的店铺</a></li>
                    </ul>
                  </div>
                </div>
              </li>
              <li>
                <div class="topNav_menu">
                  <a href="#">站内消息</a></div>
              </li>
            </ul>
          </div>
          <!-- Header TopNav Right End --></div>
        <div class="clear"></div>
      </div>
      <div class="clear"></div>
      <!-- Header TopNav End -->
      <!-- TopHeader Center -->
      <div class="shop_hd_header">
        <div class="shop_hd_header_logo">
          <h1 class="logo">
            <a href="/">
              <img src="/public/home/images/logo.png" alt="ShopCZ" /></a>
            <span>ShopCZ</span></h1>
        </div>
        <div class="shop_hd_header_search">
          <ul class="shop_hd_header_search_tab">
            <li id="search" class="current">商品</li>
            <li id="shop_search">店铺</li></ul>
          <div class="clear"></div>
          <div class="search_form">
            <form method="get" action="{{url('/goodslist')}}">
              <div class="search_formstyle">
                <input type="text" class="search_form_text" name="goods_name" value="搜索其实很简单！" />
                <input type="submit" class="search_form_sub" name="secrch_submit" value="" title="搜索" /></div>
            </form>
          </div>
          <div class="clear"></div>
          <div class="search_tag">
            <a href="{{url('/goodslist?goods_name=裙子')}}">裙子</a>
            <a href="{{url('/goodslist?goods_name=上衣')}}">上衣</a>
            <a href="{{url('/goodslist?goods_name=连衣裙')}}">连衣裙</a>
            <a href="">化妆品</a>
            <a href="">手提包</a></div>
        </div>
      </div>
      <div class="clear"></div>
      <!-- TopHeader Center End -->
      <!-- Header Menu -->
      <div class="shop_hd_menu">
        <!-- 所有商品菜单 -->
        <div id="shop_hd_menu_all_category" class="shop_hd_menu_all_category"><!-- 首页去掉 id="shop_hd_menu_all_category" 加上clsss shop_hd_menu_hover -->
        <div class="shop_hd_menu_all_category_title"><h2 title="所有商品分类"><a href="javascript:void(0);">所有商品分类</a></h2><i></i></div>
        <div id="shop_hd_menu_all_category_hd" class="shop_hd_menu_all_category_hd">
          <ul class="shop_hd_menu_all_category_hd_menu clearfix">
            <!-- 菜单项 -->
            @foreach($menu as $k=>$v)
            <li id="cat_1" class="">
              <h3><a href="{{ url('/goodslist?cate='.$v->id) }}" >{{ $v->name }}</a></h3>
              @if($v->sub)
              <div id="cat_1_menu" class="cat_menu clearfix" style="">
                @foreach($v->sub as $kk=>$vv)
                <dl class="clearfix">
                  <dt><a href="{{ url('/goodslist?cate='.$vv->id) }}" >{{ $vv->name }}</a></dt>
                  @if($vv->sub)
                  <dd>
                    @foreach($vv->sub as $kkk=>$vvv)
                    <a href="{{ url('/goodslist?cate='.$vvv->id) }}">{{ $vvv->name }}</a>
                    @endforeach
                  </dd>
                  @endif
                </dl>
                                @endforeach
              </div>
                            @endif
            </li>
            @endforeach
            <!-- 菜单项 End -->
          </ul>
        </div>
      </div>
        <!-- 所有商品菜单 END -->
        <!-- 普通导航菜单 -->
        <ul class="shop_hd_menu_nav">
          <li class="current_link">
            <a href="{{ url('/') }}">
              <span>首页</span></a>
          </li>
          <li class="link">
            <a href="">
              <span>团购</span></a>
          </li>
          <li class="link">
            <a href="">
              <span>品牌</span></a>
          </li>
          <li class="link">
            <a href="">
              <span>优惠卷</span></a>
          </li>
          <li class="link">
            <a href="">
              <span>积分中心</span></a>
          </li>
          <li class="link">
            <a href="">
              <span>运动专场</span></a>
          </li>
          <li class="link">
            <a href="">
              <span>微商城</span></a>
          </li>
          <li class="link">
            <a href="{{ url('/community/index') }}">
              <span>社区</span></a>
          </li>
        </ul>
        <!-- 普通导航菜单 End --></div>
      <!-- Header Menu End --></div>
    <div class="clear"></div>
	<!-- 面包屑 注意首页没有 -->
	<div class="shop_hd_breadcrumb">
		<strong>当前位置：</strong>
		<span>
			<a href="{{ url('/') }}">首页</a>&nbsp;›&nbsp;
			<a href="">个人资料</a>
		</span>
	</div>
	<div class="clear"></div>
	<!-- 面包屑 End -->















	<!-- Header End -->	

	<!-- 我的个人中心 -->
	<div class="shop_member_bd clearfix">
		<!-- 左边导航 -->
		<div class="shop_member_bd_left clearfix">
        <div class="shop_member_bd_left_pic">
          <a href="javascript:void(0);">
            <img src="{{session('per_pic')}}" /></a>
        </div>
        <div class="clear"></div>
        <dl>
          <dt>我的交易</dt>
          <dd>
            <span>
              <a href="{{url('order/orderlist')}}">已购买商品</a></span>
          </dd>
          <dd>
            <span>
              <a href="{{url('collection/index/1')}}">我的收藏</a></span>
          </dd>
          <dd>
            <span>
              <a href="{{url('comment/index')}}">评价管理</a></span>
          </dd>
        </dl>
        <dl>
          <dt>我的账户</dt>
          <dd>
            <span>
              <a href="{{url('/basics/basics')}}">个人资料</a></span>
          </dd>
          <dd>
            <span>
              <a href="{{url('/person')}}">密码修改</a></span>
          </dd>
          <dd>
            <span>
              <a href="{{url('address/addrlist')}}">收货地址</a></span>
          </dd>
        </dl>
      </div>
		<!-- 左边导航 End -->
		
		<!-- 右边购物列表 -->
		<div class="shop_member_bd_right clearfix">
			<div style="color:red">
			@if(session("error"))
                {{session('error')}}
            @endif
            @if(session("success"))
                {{session('success')}}
            @endif
            @if (count($errors) > 0)
            <ul>
                @foreach ($errors->all() as $error)
                    <li>{{ $error }}</li>
                @endforeach
            </ul>
            </div>
            @endif
			<div class="sns-box box-detail">
            <div class="bd">
                <div class="sns-nf">
                <form id="form" name="xinxi" method="post" action="{{url('/basics/xinxi')}}" enctype="multipart/form-data">
                	<div style="font-size:16px"><b>个人资料</b></div>
                		
	                   
	                
	                    <div id="main-profile" class="parts">
	                    	<br><br>
	                    	<br><br>
	                    	<p>
                            <label>当前头像：</label>
                            <span class="pf-avatar-box">
                               <!--  <a class="pf-avatar">
                                    <img src="/public/home/images/default.jpg">
                                </a><br> -->
		                       
                                    <img src="{{ $users->pic }}" width="100px">
								
								<input type="file" name="pic">
								
								<br><br><br>
               					<!-- {{ csrf_field() }} -->

                            </span>

                           
                           <!--  <div class="form-group">
                        	<label>商品图片</label>
                        	<input type="file" name="goods_pic">
                    		</div>
                        	</p> -->

	                        <p>
	                            <label>昵称：</label>
	                            <input style="width:300px;height:30px;line-height:30px" name="username" type="text" value="{{$users->username}}">
	                            <!-- <input id="J_uniqueName" name="_fm.b._0.u" type="hidden" value="仰望星空的沉默" maxlength="25"> -->
	                    		<br><br>
	                    		<br>
	                            
	                            <label>真实姓名：</label>
	                            <input style="width:100px;height:30px;line-height:30px" name="truename" type="text" value="{{$users->truename}}">
	                            <!-- <input id="J_realname" name="_fm.b._0.r" type="hidden" value="王永青" maxlength="6"> -->
	                            </p>
	                    	<br><br>

	                        <p>
	                            <label>性别：<em>*</em></label>
	                            <input type="radio" name="sex" value="{{$users->sex}}"  checked="checked" />男
	                            <input type="radio" name="sex" value="{{$users->sex}}" />女
	                        </p>
	                    	<br><br>
	                    	<p>
	                        <label>生日：</label>
	                            <input style="width:150px;height:30px;line-height:30px" name="birthday" type="text" value="{{$users->birthday}}">
	                            <!-- <input id="J_uniqueName" name="_fm.b._0.u" type="hidden" value="仰望星空的沉默" maxlength="25"> -->
	                    		<br><br>
	                    		<br>
	                    	</p>
	                    	<p>
	                        <label>居住地：</label>
	                            <input style="width:300px;height:30px;line-height:30px" name="address" type="text" value="{{$users->address}}">
	                            <!-- <input id="J_uniqueName" name="_fm.b._0.u" type="hidden" value="仰望星空的沉默" maxlength="25"> -->
	                    		<br><br>
	                    		<br>
	                    	</p>
	                       	
	                        

	                    	<div class="act skin-blue">
	                        <span class="btn n-btn">
	                            <button type="submit" id="J_saveProfile">保存</button>
	                            <div style="width:1px; height:1px; overflow:hidden; " >
	                                <input type="submit" ></input>
	                            </div>
	                        </span>
	                    	</div>
						</div>
                	</div>
               {{ csrf_field() }}
                </form>
            </div>
            </div>
		</div>
		<!-- 右边购物列表 End -->

	</div>
	<!-- 我的个人中心 End -->

	<!-- Footer - wll - 2013/3/24 -->
	<div class="clear"></div>
	<div class="shop_footer">
            <div class="shop_footer_link">
                <p>
                    <a href="{{ url('/') }}">首页</a>|
                    <a href="">招聘英才</a>|
                    <a href="">广告合作</a>|
                    <a href="">关于ShopCZ</a>|
                    <a href="">关于我们</a>
                </p>
            </div>
            <div class="shop_footer_copy">
                <p>Copyright 2004-2013 itcast Inc.,All rights reserved.</p>
            </div>
        </div>
	<!-- Footer End -->
	
	
</body>
</html>